package com.wb.structual.decorator.cake;

/**
 * @author 魏彪
 */
public abstract class BatterCakeDecorator extends BatterCake {

    /**
     * 静态代理，委派
     */
    private BatterCake batterCake;

    public BatterCakeDecorator(BatterCake batterCake) {
        this.batterCake = batterCake;
    }

    protected abstract void doSomething();

    @Override
    protected String msg() {
        return batterCake.msg();
    }

    @Override
    protected int price() {
        return batterCake.price();
    }
}
